/**
* gtk_stack_set_transition_duration:
* @stack: a #GtkStack
- * @transition_duration: the new duration, in milliseconds
+ * @duration: the new duration, in milliseconds
*
* Sets the duration that transitions between pages in @stack
* will take.
*
- * Returns: the transition duration
- *
* Since: 3.10
*/
void
gtk_stack_set_transition_duration (GtkStack *stack,
- guint transition_duration)
+ guint duration)
{
g_return_if_fail (GTK_IS_STACK (stack));
- stack->priv->transition_duration = transition_duration;
+ stack->priv->transition_duration = duration;
g_object_notify (G_OBJECT (stack), "transition-duration");
}
/**
* gtk_stack_set_transition_type:
* @stack: a #GtkStack
- * @transition_type: the new transition type
+ * @transition: the new transition type
*
* Sets the type of animation that will be used for
* transitions between pages in @stack. Available
*/
void
gtk_stack_set_transition_type (GtkStack *stack,
- GtkStackTransitionType transition_type)
+ GtkStackTransitionType transition)
{
g_return_if_fail (GTK_IS_STACK (stack));
- stack->priv->transition_type = transition_type;
+ stack->priv->transition_type = transition;
g_object_notify (G_OBJECT (stack), "transition-type");
}
* gtk_stack_set_visible_child_name:
* @stack: a #GtkStack
* @name: the name of the child to make visible
- * @transition_type: the transition type to use
+ * @transition: the transition type to use
*
* Makes the child with the given name visible.
*
void
gtk_stack_set_visible_child_full (GtkStack *stack,
const gchar *name,
- GtkStackTransitionType transition_type)
+ GtkStackTransitionType transition)
{
GtkStackPrivate *priv;
GtkStackChildInfo *child_info, *info;
}
if (child_info != NULL && gtk_widget_get_visible (child_info->widget))
- set_visible_child (stack, child_info, transition_type, priv->transition_duration);
+ set_visible_child (stack, child_info, transition, priv->transition_duration);
}
static void
const gchar * gtk_stack_get_visible_child_name (GtkStack *stack);
void gtk_stack_set_visible_child_full (GtkStack *stack,
const gchar *name,
- GtkStackTransitionType transition_type);
+ GtkStackTransitionType transition);
void gtk_stack_set_homogeneous (GtkStack *stack,
gboolean homogeneous);
gboolean gtk_stack_get_homogeneous (GtkStack *stack);
void gtk_stack_set_transition_duration (GtkStack *stack,
- guint transition_duration);
+ guint duration);
guint gtk_stack_get_transition_duration (GtkStack *stack);
void gtk_stack_set_transition_type (GtkStack *stack,
- GtkStackTransitionType transition_type);
+ GtkStackTransitionType transition);
GtkStackTransitionType gtk_stack_get_transition_type (GtkStack *stack);
G_END_DECLS